﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/admin/TempAdmin.master" CodeFile="ProductDetails.aspx.cs" Inherits="admin_ProductDetail" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="FilmDetailCT" ContentPlaceHolderID="ContentRight" runat="server">        
        <form id="form1" runat="server">
        <table>
            <tr>
                <td style="width: 150px">
                    <img src="../img/pixel_trans.gif" height="10px" />
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center">
                    <asp:Label ID="lblHeader" runat="server" Text="Chi Tiết Sản Phẩm"
                      ForeColor="#003300" Font-Size="Large" Font-Bold="True"></asp:Label>
                </td>                
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Label ID="lblMessage" runat="server" ForeColor="#003300"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 150px; height:50px;">
                    <img src="../img/pixel_trans.gif" height="10px" />
                </td>
                <td></td>
                <td align="center" rowspan="8" style="width:180px; height:100px;">
                    <asp:Image ID="image" Height="150px" Width="160px" runat="server" />
                    <br/>
                    <asp:HyperLink ID="hlRepresentImage" runat="server" ForeColor="Black" Visible="false" >Hình 
                    đại diện</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td style="width: 150px; text-align: right;">
                    <asp:Label ID="lblProductID" runat="server" ForeColor="Black" Text="Mã: " ></asp:Label>    
                </td>
                <td style="width: 369px;padding-left:5px;">
                    <asp:TextBox ID="txtProductID" runat="server" Enabled="false" ReadOnly="true" ForeColor="Red"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 150px">
                     <img src="../img/pixel_trans.gif" height="10px" />
                </td>    
                <td></td>
            </tr>
            <tr>
                <td style="width: 150px; text-align: right;">
                    <asp:Label ID="lblProductName" runat="server" ForeColor="Black" Text="Tên Sản Phẩm: "></asp:Label>
                </td>
                <td style="padding-left:5px;">
                    <asp:TextBox ID="txtProductName" runat="server" ForeColor="Black"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtProductName" 
                        ErrorMessage="Bạn phải nhập tên sản phẩm!" 
                        ValidationGroup="Product_AddUpdate" Display="None"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="width: 150px; height: 9px;">
                     <img src="../img/pixel_trans.gif" height="10px" />
                </td>    
               <td style="height: 9px"></td>
            </tr>
             <tr>
               <td style="width: 150px; text-align: right;">
                    <asp:Label ID="lblOldPrice" runat="server" ForeColor="Black" Text="Giá Cũ: "></asp:Label>
               </td>
               <td style="width: 369px;padding-left:5px;">
                    <asp:TextBox ID="txtOldPrice" runat="server" ForeColor="Black"></asp:TextBox>
               </td>
               <td></td>
            </tr>
            <tr>
                <td style="width: 150px">
                     <img src="../img/pixel_trans.gif" height="10px" />
                </td> 
                <td></td>   
                <td></td>
            </tr>
            <tr>
               <td style="width: 150px; text-align: right;">
                    <asp:Label ID="lblSalePrice" runat="server" ForeColor="Black" Text="Giá Bán: "></asp:Label>
               </td>
               <td style="width: 369px;padding-left:5px">
                    <asp:TextBox ID="txtSalePrice" runat="server" ForeColor="Black"></asp:TextBox>
               </td>
               <td></td>
            </tr>
            <tr>
                <td style="width: 150px"><img src="../img/pixel_trans.gif" height="10px" /></td> 
                <td></td>   
                <td></td>
            </tr>
             <tr>
                <td style="width: 150px; text-align: right; height: 21px;">
                    <asp:Label ID="lblBriefDesc" runat="server" ForeColor="Black" Text="Mô tả sản phẩm: "></asp:Label>
                    <br />
                </td>                
                <td colspan="2" style="height: 21px; width: 369px;padding-left:5px;">
                     <asp:TextBox ID="txtBriefDesc" runat="server" Height="154px" TextMode="MultiLine" Width="348px"></asp:TextBox>    
                </td>
            </tr>
            <tr>
                <td style="width: 150px">
                     <img src="../img/pixel_trans.gif" height="10px" />
                </td>    
            </tr>
           
            <tr>
                <td style="width: 150px">
                     <img src="../img/pixel_trans.gif" height="10px" />
                </td>
                <td></td>    
                <td></td>
            </tr>
            <tr>
               <td style="width: 150px; text-align: right;">
                    <asp:Label ID="Label3" runat="server" ForeColor="Black" Text="Xuất Xứ: "></asp:Label>
               </td>
               <td style="width: 369px;padding-left:5px;">
                     <asp:DropDownList  Width="100px" ID="ddlPaceOfOrgrin" runat="server" 
                     DataSourceID="odsPlaceOfOrigin" DataTextField="PlaceName" 
                     DataValueField="PlaceID"></asp:DropDownList>
               </td>
               <td></td>
            </tr>
            <tr>
                <td style="width: 150px">
                     <img src="../img/pixel_trans.gif" height="10px" />
                </td> 
                <td></td>   
                <td></td>
            </tr>
            <tr>
                <td style="width:150px; text-align: right";>
                    <asp:Label ID="Label5" runat="server" ForeColor="Black" Text="Chủng Loại: "></asp:Label>  
                </td>
                <td style="width: 369px;padding-left:5px;">
                        <asp:DropDownList  Width="100px" ID="ddlCategory" runat="server" 
                        DataSourceID="odsCategory" DataTextField="CategoryName" 
                        DataValueField="CategoryID"></asp:DropDownList>
                </td>
                <td></td>
            </tr>
            <tr>
                <td style="width: 150px">
                     <img src="../img/pixel_trans.gif" height="10px" />
                </td>    
                <td></td>
                <td></td>
            </tr>
            <tr> <td style="width: 150px; text-align: right;">
                    <asp:Label ID="Label4" runat="server" ForeColor="Black" Text="Số lượng: "></asp:Label>
               </td>
              
               <td style="width: 369px;padding-left:5px;">
                    <asp:DropDownList Width="100px" ID="ddlQuantity" runat="server">
                        <asp:ListItem Value="1">1</asp:ListItem>
                        <asp:ListItem Value="2">2</asp:ListItem>
                        <asp:ListItem Value="3">3</asp:ListItem>
                        <asp:ListItem Value="4">4</asp:ListItem>
                        <asp:ListItem Value="5">5</asp:ListItem>
                        <asp:ListItem Value="6">6</asp:ListItem>
                   </asp:DropDownList>
               </td>
               <td></td>
            </tr>
            <tr>
                <td style="width: 150px">
                     <img src="../img/pixel_trans.gif" height="10px" />
                </td>    
                <td></td>
                <td></td>
            </tr>
             <tr>
               <td style="width:150px; text-align: right";>
                   <asp:Label ID="lbStatus" runat="server" Text="Trạng thái bán: " ForeColor="Black"></asp:Label>
               </td>
               <td style="width:369px;padding-left:5px;">
                    <asp:DropDownList ID="ddlStatus" runat="server" Width="100px">
                    <asp:ListItem Selected="True" Value="true">Có</asp:ListItem>
                    <asp:ListItem Value="false">Không</asp:ListItem>
                </asp:DropDownList>
               </td>
            </tr>
            <tr>
                <td style="width: 150px"> <img src="../img/pixel_trans.gif" height="10px" /></td>
                <td style="width: 369px"></td>
                <td></td>
            </tr>
            <tr>
                <td style="width: 150px">
                   
                </td>
                <td colspan="2" style="width: 369px">
                     <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" Width="72px" 
                         onclick="btnUpdate_Click" ValidationGroup="Product_AddUpdate" />&nbsp;&nbsp;
                     <input id="Reset1" type="reset" runat="server" value="Làm lại" style="width:72px" /> 
                     &nbsp;&nbsp;
                     <asp:Button ID="btnBack" runat="server" Text="Quay Lại" Width="72px" 
                         onclick="btnBack_Click" />&nbsp;&nbsp;
                     <asp:Button ID="btnDelete" runat="server" Text="Xóa" Width="72px" 
                         onclick="btnDelete_Click" />           
                </td>
            </tr>
             <tr>
                <td style="width: 150px">
                     <img src="../img/pixel_trans.gif" height="10px" />
                </td>    
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td align="center" colspan="3">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" ShowMessageBox="True" ValidationGroup="Product_AddUpdate" />
                </td>
            </tr>
        </table>
        <asp:ObjectDataSource ID="odsPlaceOfOrigin" runat="server" 
                        OldValuesParameterFormatString="original_{0}" 
                        SelectMethod="GetAllPlaceOfOrigrin" 
                        TypeName="BonSaiTableAdapters.PlaceOfOriginTableAdapter">
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="odsCategory" runat="server" 
                        OldValuesParameterFormatString="original_{0}" 
                        SelectMethod="GetAllCategory" 
                        TypeName="BonSaiTableAdapters.CategoriesTableAdapter">
        </asp:ObjectDataSource>
        </form>
</asp:Content>

